#ifndef LANQWINDOW_H
#define LANQWINDOW_H

#include <QWidget>
#include <QIcon>
#include <string>
#include <map>
#include <vector>
#include <iostream>
#include "ui_lanqwindow.h"
#include "talkwindow.h"
#include "talkwinstatus.h"
#include "../QCommon/user.h"
#include "../QCommon/events.h"
#include "talkwindow.h"

using namespace std;

class LanqWindow : public QWidget
{
    Q_OBJECT
public:
    LanqWindow(User& myInfo, QWidget* parent = 0);
    ~LanqWindow();
    void counterPartSay(User &counterpart, string &msg);
    void updateUserList(vector<User> &list);

private:
    Ui::LanqWindow *ui;
    map<string,TalkWindow*> win_map;
    void closeEvent(QCloseEvent* event);

private slots:
    void listDoubleClick(QListWidgetItem*);
    void statusChanged(int);
};

#endif // LANQWINDOW_H
